<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增参数')" />

    <link th:href="@{/highlight/railscasts.css}" rel="stylesheet"/>
    <script th:src="@{/highlight/highlight.pack.js}"></script>
    <script>
        // hljs.initHighlightingOnLoad();
    </script>
</head>

<body class="white-bg">


    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-config-add" name="form-config-add">
        <div class="form-group">	
            <label class="col-sm-3 control-label is-required">参数名称qq：</label>
            <div class="col-sm-8">
                <input id="configName" name="configName" class="form-control" type="text" required>
            </div>
        </div>

		<div class="form-group">	
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <textarea id="configValue" name="configValue" class="form-control" rows="4" required>[[*{tempStr}]]</textarea>
            </div>

        </div>

            <div class="form-group">
                <div class="col-sm-8">
                    <button onclick="submitHandler()">保存</button>
                </div>

            </div>
    </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">

        // $(document).ready(function () {
        //     $('pre code').each(function (i, block) {
        //         hljs.highlightBlock(block);
        //     });
        // });

	    var prefix = ctx + "temp";

	    
	    function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/save", $('#form-config-add').serialize());
	        }
	    }
    </script>
</body>
</html>
